/**
 * Copyright &copy; 2016-2022 liuhangjun All rights reserved.
 */
package com.magic.zhixin.entity;

import com.magic.zhixin.model.TransferType;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

/**
 * 提现记录Entity
 *
 * @author liuhangjun
 * @version 2018-06-26
 */
@Data
@Entity
public class TransferRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private Long userId; // 用户
	private BigDecimal amount; // 金额
	private Integer status; // 状态：1:提交，2：成功，3:失败
	private String remark; // 备注
	private String tradeNo; // 交易流水号
	private BigDecimal balanceDeduct;//余额抵扣金额

	@Enumerated(EnumType.ORDINAL)
	@Column(columnDefinition = "tinyint(1) NOT NULL")
	private TransferType transferType;

	private String openId; // 微信提现用到openId
	private String clientIp; // 微信提现用到ip
	private String paymentNo; // 微信订单号
	private String paymentTime; // 微信企业付款成功时间

}
